class MyDecorator:
    def __init__(self, func):
        self.func = func

    def __call__(self, *args, **kwargs):
        print("start")
        res = self.func()
        print("stop")
        return res


@MyDecorator
def test():
    print("test")
    return 200


print(test())
